package com.ultrapower.bean;

public class ApplicationBean {
	private final String name;
	private short serviceTypeCode;
	
	public short getServiceTypeCode() {
		return serviceTypeCode;
	}

	public void setServiceTypeCode(short serviceTypeCode) {
		this.serviceTypeCode = serviceTypeCode;
	}

	public String getName() {
		return name;
	}

	public ApplicationBean(String name, short serviceTypeCode) {
		if (name == null) {
			throw new NullPointerException("name must not be null. serviceType=" + serviceTypeCode);
		}
		this.name = name;
		this.serviceTypeCode = serviceTypeCode;
	}

	@Override
	public String toString() {
		return "ApplicationBean [name=" + name + ", serviceTypeCode=" + serviceTypeCode + "]";
	}

}
